Table 1. Paired Bootstrap test

Main reference:
Wei, M.F., H. Chi, Y.F., Guo, X.W. Li, L.L. Zhao, R.Y. Ma. 2020. Demography of Cacopsylla
   chinensis (Hemiptera: Psyllidae) reared on four cultivars of Pyrus bretschneideri and 
   P. communis (Rosales: Rosaceae) pears with estimations of confidence intervals of
   specific life table statistics. J Econ Entomol 113(5): 2343-2353.

-----------------------------------------------------------------------------------------
The results of paired bootstrap test are presented in following three ways.
   1. Bootstrap t confidence intervals (assuming the results is normally distributed).
   2. Bootstrap percentile confidence intervals (based on the actual sampling results).
   3. P value based on number of bootstrap samples showing significant difference.
Because the t confidence intervals is based on the assumption of normal distribution, 
while the bootstrap percentile confidence interval is based on random sampling, they
are different. Although most biological and ecological data are mostly not normal,
the distribution of bootstrap sample means are generally normal (if B is large).
Therefore, a large number of resampling (B = 100,000) is needed to ensure a stable
estimate. However, 100,000 is still a tiny proportion of exact method. If the bootstrap
results are normally distributed, the t confidence interval is similar to the bootstrap
confidence interval.  Moreover, the results of significance test based on three methods
are consistent. Discrepant results will only be observed in extreme cases.
-----------------------------------------------------------------------------------------

Project: 
Number of treatments = 2 
Bootstrap number (B) = 100000 
Treatment 1 =D:\\...D:\\ļ\\ck2\ck_Effect Boot-A1a-R0.tx
          Variable: R0
Treatment 2 =D:\\...D:\\ļ\\ȥѿ2\T_Effect Boot-A1a-R0.tx
          Variable: R0
Comparison between 25C-R0 vs 25C-R0
Number of bootstrap resamplings (B)= 100000 
========================================================================
                          25C-R0                   25C-R0
------------------------------------------------------------------------
Original =               23.58                    22.49 
------------------------------------------------------------------------
Bootstrap mean =         23.5748934999999         22.4781470999996 
Variance =               13.8656773434308         13.0300142439043 
SE =                     3.72366450468229         3.60971110255437 
n                        100                      100 
------------------------------------------------------------------------
Difference 1 = 1.09 
   Difference 1 is the difference of two original values.
------------------------------------------------------------------------
Difference 2 = 1.09674640000028 
   Difference 2 is the difference of two bootstrap means.
------------------------------------------------------------------------
Difference 3 = 1.09674639999999 
   Difference 3 is the mean of all paired bootstrap differences.
With the increase of B, diff. 2 and 3 will close to diff. 1.
------------------------------------------------------------------------
SE of 100000 differences = 5.1795725425757 
************************************************************************
* Bootstrap t confidence intervals:                                    *
* 95% CI:                Lower                    Upper                *
*                       -9.05502931883685         11.2485221188368     *
* No signif. diff. btw. 25C-R0 and 25C-R0.                             *
* If the CI includes 0, there is no significant difference.            *
------------------------------------------------------------------------
------------------------------------------------------------------------
# Percentile confidence intervals of differences:                      #
# 95% CI:                Lower                    Upper                #
#                       -9.1                      11.23                #
# No signif. diff. btw. 25C-R0 and 25C-R0.                             #
# If the CI includes 0, there is no significant difference.            #
#----------------------------------------------------------------------#
# Number of insignif. diff. =  83213                                   #
# Number of signif. diff. =  16787                                     #
# P-value (based on bootstrap samples) =  0.83213                      #
------------------------------------------------------------------------
------------------------------------------------------------------------

References:
Smucker, Mark D., James Allan, and Ben Carterette. 2007. A Comparison of
   Statistical Significance Tests for Information Retrieval Evaluation.
   Proceedings of the Sixteenth ACM Conference on Conference on Information
   and Knowledge Management, Lisbon, Portugal.p. 623-632.
HesHesterberg, T., D. S. Moore, S. Monaghan, A. Clipson, and R. Epstein. 
   2005. Bootstrap methods and permutation tests. In D. S. Moore & G. P. 
   McCabe (Eds.), Introduction to the Practice of Statistics (5th ed.). New
   York, US: W. H. Freeman and Company.
Wei, M. F., H. Chi, Y. F. Guo, X. W. Li, L. L. Zhao, and R. Y. Ma. 2020.
   Demography of Cacopsylla chinensis (Hemiptera: Psyllidae) reared on four
   cultivars of Pyrus bretschneideri and P. communis (Rosales: Rosaceae) 
   pears with estimations of confidence intervals of specific life table
   statistics. Journal of Economic Entomology doi: 10.1093/jee/toaa149. 

 Table 2. Differences between treatments and lower CI
     (This CI is based on the bootstrap t confidence interval)
 [Upper right triangle: The difference between means (i,j)]
 [Lower left triangle: Lower CI of difference between means (i,j) based on t]
 
 =====================================
                25C-R0     25C-R0
 =====================================
 25C-R0         ----       1.0967 
 25C-R0        -9.055      ----
 =====================================
 *: Significant at 5% significance level
 The bootstrap t confidence interval might be different from the bootstrap percentile 
 confidence interval. 

 Table 3. Differences between treatments and P-value
 [Upper right triangle: The difference between means (i,j)]
 [Lower left triangle: P-value of the test between (i,j)]
 
 =====================================
                25C-R0     25C-R0
 =====================================
 25C-R0         ----       1.0967 
 25C-R0         0.8321     ----
 =====================================
 *: Significant at 5% significance level

 Table 4. Differences between treatments (Paired bootstrap test)
 [Upper right triangle: P-value of the test between (i,j)]
 [Lower left triangle: The difference between means (i,j)]
 
 =====================================
                25C-R0     25C-R0
 =====================================
 25C-R0         ----       0.8321 
 25C-R0         1.0967     ----
 =====================================
 *: Significant at 5% significance level

 Table 5. Differences between treatments (Paired bootstrap test)
 [Upper right triangle: P-value of the test between (i,j)]
 [Lower left triangle: P-value of the test between (j,i)]
 
 =====================================
                25C-R0     25C-R0
 =====================================
 25C-R0         ------     0.8321 
 25C-R0         0.8321     ------
 =====================================
 *: Significant at 5% significance level

 Table 6. Preliminary table of differences between treatments.
 You can use the following table to mark the differences between treatments.
 Only the differences between the first few treatments are marked for you.
 Note well! If this table is not completed, you have to complete the rest "_" 
 yourself. Attention! Not every "_" needs to be filled with a letter. 
 This is a good practice of "critical thinking". "Thinking is the
 most important thing in science".
 ===========================================================================
 Treatment     Mean                     SE                      Difference
 ---------------------------------------------------------------------------
 25C-R0        23.58                    3.72366450468229         a_
 25C-R0        22.49                    3.60971110255437         a_
 ---------------------------------------------------------------------------
